package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;

import jpa.entitys.common.CommonEntity;


/**
 * The persistent class for the COST_TXN_STATUS_HISTORY database table.
 * 
 */
@Entity
@Table(name="COST_TXN_STATUS_HISTORY")
@NamedQueries({
    @NamedQuery(name = "CostTxnStatusHistory.findAll", query = " SELECT c FROM CostTxnStatusHistory c "),
    @NamedQuery(name = "CostTxnStatusHistory.findById", query = " SELECT c FROM CostTxnStatusHistory c WHERE c.id = :Id"),
    @NamedQuery(name = "CostTxnStatusHistory.findByTxnHistoryWithRevision", query = " SELECT c FROM CostTxnStatusHistory c WHERE c.id.modelCode = :modelCode And c.id.revision = :revision order by c.id.runningNo desc")
})
public class CostTxnStatusHistory extends CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private CostTxnStatusHistoryPK id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="ACTION_BY", length=300)
	private String actionBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="ACTION_DATE")
	private Date actionDate;

	@Column(name="COST_LABEL", length=300)
	private String costLabel;

	@Column(name="CREATED_BY")
	private String createdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(length=300)
	private String description;

	@Column(name="FROM_STATUS", length=2)
	private String fromStatus;

	@Column(name="GROUP_TYPE", length=30)
	private String groupType;

	@Column(name="INTERNAL_UPDATE_ID", length=30)
	private String internalUpdateId;

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="LINK_FILE_ID", precision=22)
	private BigDecimal linkFileId;

	@Column(name="REASON_CODE", length=30)
	private String reasonCode;

	@Column(name="REASON_NAME", length=300)
	private String reasonName;

	@Column(name="REASON_TYPE", length=1)
	private String reasonType;

	@Column(length=300)
	private String remarks;

	@Column(name="TO_STATUS", length=2)
	private String toStatus;
	
	@Column(name="SYNC_ISSTAGING", length=1)
	private String syncIsstaging;
	

    /**
	 * @return the syncIsstaging
	 */
	public String getSyncIsstaging() {
		return syncIsstaging;
	}

	/**
	 * @param syncIsstaging the syncIsstaging to set
	 */
	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public CostTxnStatusHistory() {
    }

	public CostTxnStatusHistoryPK getId() {
		return this.id;
	}

	public void setId(CostTxnStatusHistoryPK id) {
		this.id = id;
	}
	
	public String getActionBy() {
		return this.actionBy;
	}

	public void setActionBy(String actionBy) {
		this.actionBy = actionBy;
	}

	public Date getActionDate() {
		return this.actionDate;
	}

	public void setActionDate(Date actionDate) {
		this.actionDate = actionDate;
	}

	public String getCostLabel() {
		return this.costLabel;
	}

	public void setCostLabel(String costLabel) {
		this.costLabel = costLabel;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getFromStatus() {
		return this.fromStatus;
	}

	public void setFromStatus(String fromStatus) {
		this.fromStatus = fromStatus;
	}

	public String getGroupType() {
		return this.groupType;
	}

	public void setGroupType(String groupType) {
		this.groupType = groupType;
	}

	public String getInternalUpdateId() {
		return this.internalUpdateId;
	}

	public void setInternalUpdateId(String internalUpdateId) {
		this.internalUpdateId = internalUpdateId;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public BigDecimal getLinkFileId() {
		return this.linkFileId;
	}

	public void setLinkFileId(BigDecimal linkFileId) {
		this.linkFileId = linkFileId;
	}

	public String getReasonCode() {
		return this.reasonCode;
	}

	public void setReasonCode(String reasonCode) {
		this.reasonCode = reasonCode;
	}

	public String getReasonName() {
		return this.reasonName;
	}

	public void setReasonName(String reasonName) {
		this.reasonName = reasonName;
	}

	public String getReasonType() {
		return this.reasonType;
	}

	public void setReasonType(String reasonType) {
		this.reasonType = reasonType;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getToStatus() {
		return this.toStatus;
	}

	public void setToStatus(String toStatus) {
		this.toStatus = toStatus;
	}

}